<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>添加探测站</title>
    <style>
        .container {
            width: 56.25rem;
            margin: 0 auto;
            margin-top: 18.75rem;
            font-size: 18px;
            height: 21.875rem;
        }

        .form-content {
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: space-around;
        }
    </style>
</head>

<body class="container">
    <form action="http://192.168.13.78:3000/upload" class="form-content" method="post" enctype="multipart/form-data">
        所属局 <select name="office">
            <option value="haerbinju" selected>哈尔滨局</option>
            <option value="shenyangju">沈阳局</option>
            <option value="beijingju">北京局</option>
            <option value="jinanju">济南局</option>
            <option value="huhehaoteju">内蒙古局</option>
            <option value="taiyuanju">太原局</option>
            <option value="xianju">西安局</option>
            <option value="lanzhouju">兰州局</option>
            <option value="zhengzhouju">郑州局</option>
            <option value="wuhanju">武汉局</option>
            <option value="shanghaiju">上海局</option>
            <option value="nanchangju">南昌局</option>
            <option value="guangtiejituan">广铁集团</option>
            <option value="chengduju">成都局</option>
            <option value="nanningju">南宁局</option>
            <option value="kunmingju">昆明局</option>
            <option value="qingzanggongsi">青藏公司</option>
            <option value="mulumuqiju">乌鲁木齐局</option>
        </select>
        <input type="text" name="station" value="" placeholder="探测站">
        <input type="text" name="point" value="" placeholder="输入经纬度逗号隔开例如：116.385297,39.872863"
            onkeyup="if(!/^-?((0|1?[0-7]?[0-9]?)(([.][0-9]{1,10})?)|180(([.][0]{1,10})?)),-?((0|[1-8]?[0-9]?)(([.][0-9]{1,10})?)|90(([.][0]{1,10})?))$/.test(this.value)){alert('请输入正确的经纬度'+this.value);this.value='';}">
        设备状态 <select name="status">
            <option value="1" selected>正常</option>
            <option value="2">故障</option>
            <option value="3">待修</option>
        </select>
        <input type="file" name="file" multiple />
        <br><br>
        <input type="submit" value="提交">
    </form>

    <!-- <form action="http://127.0.0.1:3000/upload" method="post" enctype="multipart/form-data">
        <input type="file" name="file"/>
        <input type="submit" value="ok"/>
    </form> -->



</body>

</html>